<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>ajaxHTML</title>
        <script src="../style/js/jquery.js"></script>
        <script src="../style/js/bt.dwz.js"></script>
    </head>
<script>
    function a(str) {
            alert("接收:"+str);
    }
    function b(str) {
        alert("发送:"+str);
    }
</script>
    <body>
       
        <div style="margin-top: 15px;">获取html: 
             <form  class="form-inline bs-docs-example" beforeSubmit="b(resque)" actionTo="#" dataType="html" callback="a(respon);" action="message.html" method="post">           
			    <input type="text" name="name" placeholder="姓名 " value="">
                 <button class="btn" type="submit" value="Submit5">获取</button> <!--onclick="getHtml('message.html')"-->
             </form>
        </div>
       
    </body>
    <script>
        function getHtml(url) {
            $.ajax({ url: "message.html", type: "get",dataType:"html", success: function (t) {
                alert('返回:' + t);
            }
            , error: function (e) {
                alert(e.toString());
            }
            });
        }
    </script>
</html>
